package com.api.devices.mapper;

import com.api.devices.domain.query.intergration.RobotLatestScoreQuery;
import com.api.devices.domain.query.tracing.intergration.IntergrationQuery;
import com.api.devices.domain.vo.tracing.intergration.IntergrationVo;
import com.api.devices.domain.vo.tree.TreeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface IntergrationMapper {
    List<Double> generates(@Param("tableName") String tableName, @Param("vo") TreeVo vo);

    List<IntergrationQuery> scroe(@Param("vo") IntergrationVo vo);
    IntergrationQuery series(@Param("vo") IntergrationVo vo);

    List<RobotLatestScoreQuery> getRobotList(@Param("items") List<String> robotCodes);
    List<RobotLatestScoreQuery> scoreRobotIds(@Param("items") List<Long> robotIds);

    List<Map> intergrationLastData(@Param("tabName") String tableName);
}
